package 反射.reflect;

public class Cat {
    public static int a;
    public static final String COUNTRY="中国";
    private String name;
    private int age;

    public Cat() {
        System.out.println("无参构造");
    }


    public Cat(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("有参构造");
    }
public void eat(){
    System.out.println("eat...");
}
private String eat(String name){
        return "最爱吃"+ name;
}
private void run(){
    System.out.println("run...");
}
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
